package com.yx.system.service.impl;

import com.yx.system.dao.TbWelfareDao;
import com.yx.system.entity.TbWelfare;
import com.yx.system.service.TbWelfareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TbWelfareServiceImpl implements TbWelfareService {
	@Autowired
	private TbWelfareDao welfareDao;
	
	@Override
	public TbWelfare queryObject(Integer id){
		return welfareDao.queryObject(id);
	}
	
	@Override
	public List<TbWelfare> queryList(Map<String, Object> map){
		return welfareDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return welfareDao.queryTotal(map);
	}
	
	@Override
	public void save(TbWelfare welfare){
		welfareDao.save(welfare);
	}
	
	@Override
	public void update(TbWelfare welfare){
		welfareDao.update(welfare);
	}
	
	@Override
	public void delete(Integer id){
		welfareDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		welfareDao.deleteBatch(ids);
	}

	@Override
	public List<TbWelfare> findAll() {
		return welfareDao.findAll();
	}

}
